package cn.wsn2018.tools.model;

/**
 * rsa内存对象
 * */
public class RsaObj {

    private volatile static RsaObj instance=null;

    private String publicKey;
    private String privateKey;


    public static RsaObj getInstance(){
        if(instance==null){
            synchronized (RsaObj.class) {
                if (instance == null) {
                    instance = new RsaObj();
                }
            }
        }
        return instance;
    }

    public String getPublicKey() {
        return publicKey;
    }

    public void setPublickKey(String publicKey) {
        this.publicKey = publicKey;
    }

    public String getPrivateKey() {
        return privateKey;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }


}
